package cn.iocoder.yudao.module.vlog.info.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "视频信息新增 Request VO")
@Data
public class AppVLogInfoCreateReqVO {

    @Schema(description = "播放地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.w3cschool.cn/statics/demosource/movie.mp4")
    @NotEmpty(message = "播放地址不能为空")
    private String playUrl;

    @Schema(description = "封面地址，可以通过`uni.chooseMedia`获取", example = "https://www.example.com/xxx.jpg")
    private String coverUrl;

    @Schema(description = "视频宽，可以通过`uni.chooseMedia`获取", example = "0")
    private Integer videoWidth;

    @Schema(description = "视频高，可以通过`uni.chooseMedia`获取", example = "0")
    private Integer videoHeight;

    @Schema(description = "视频大小，可以通过`uni.chooseMedia`获取", example = "0")
    private Integer videoSize;

    @Schema(description = "视频时长，单位为秒，可以通过`uni.chooseMedia`获取", example = "0")
    private Integer videoDuration;

    @Schema(description = "视频标题", example = "W3C教程示例视频")
    private String title;

    @Schema(description = "是否私密，默认公开", defaultValue = "false", example = "false")
    private Boolean privacy;

    @Schema(description = "纬度", example = "106.690801")
    private BigDecimal latitude;

    @Schema(description = "经度", example = "26.567322")
    private BigDecimal longitude;

    @Schema(description = "城市编号，从行政区域的城市列表接口获取", example = "5201")
    private Integer cityId;

}
